package com.example.flowabledemo.service;

import com.example.flowabledemo.data.dto.ResponseResult;
import com.example.flowabledemo.data.entity.AaRole;
import com.example.flowabledemo.data.entity.AaUser;
import com.example.flowabledemo.data.pojo.SecUser;
import com.example.flowabledemo.data.vo.ApplyLeaveVo;
import com.example.flowabledemo.data.vo.UserInfoVo;
import java.util.List;

/**
 * @author linke
 * @date 2020/11/26 22:00
 * @description
 */
public interface UserService {

  /**
   * 获取登录的用户信息
   */
  SecUser getUser();

  UserInfoVo getUserInfoVo(String username);

  AaUser getUser(String username);

  List<AaRole> getRoles(String username);

  ResponseResult applyLeave(ApplyLeaveVo applyLeaveVo,String status);

  ResponseResult editLeave(String processInstanceId,String status,ApplyLeaveVo applyLeaveVo,String processRemarks);
}
